Probe for a C compiler in the configure script
authorAlex Crichton <alex@alexcrichton.com>
Wed, 14 Jan 2015 04:19:26 +0000 (20:19 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 14 Jan 2015 04:19:26 +0000 (20:19 -0800)
Probably a good sanity check to have up front to ensure that you've got a C
compiler locally!

Closes #820

configure

index 6c724cc4bd0d15d79265f28094fb07e183c3b6ed..0286fb103b8e6050f3a1e5f34e4c906c6eaad4a1 100755 (executable)
--- a/configure
+++ b/configure
@@ -342,6 +342,7 @@ step_msg "looking for build programs"
 
 probe_need CFG_CURLORWGET  curl wget
 probe_need CFG_PYTHON      python
+probe_need CFG_CC          cc gcc clang
 
 if [ ! -z "${CFG_LOCAL_RUST_ROOT}" ]; then
     CFG_RUSTDOC="${CFG_LOCAL_RUST_ROOT}/bin/rustdoc"